package densetsu;

import javax.swing.SwingUtilities;

import densetsu.controller.Controller;
import densetsu.model.GameModel;
import densetsu.model.Model;
import densetsu.view.GameView;
import densetsu.view.View;

/**
 * Main entry point for the game, creates the components and starts everything
 * and such.
 * 
 * @author Koen
 * 
 */
public class Main {

	private Model model;
	private View view;
	@SuppressWarnings ("unused")
	private Controller controller;

	public Main ( ) {
		model = new GameModel ( );
		view = new GameView ( model );
		controller = new Controller ( model, view );
	}

	public static void main ( String... args ) {
		SwingUtilities.invokeLater ( new Runnable ( ) {
			@Override
			public void run ( ) {
				new Main ( );
			}
		} );
	}

}
